commonlibsse_ng\re\b/
BSIInputDevice.rs

1use crate::re::BSFixedString::BSFixedString;
2use crate::re::offsets_rtti::RTTI_BSIInputDevice;
3use crate::re::offsets_vtable::VTABLE_BSIInputDevice;
4use crate::rel::id::VariantID;
5
6#[repr(C)]
7#[derive(Debug, PartialEq)]
8pub struct BSIInputDevice {
9    pub vtable: *const BSIInputDeviceVtbl, // 0x00
10}
11const _: () = assert!(core::mem::size_of::<BSIInputDevice>() == 0x8);
12
13impl BSIInputDevice {
14    /// Address & offset of RTTI for `BSIInputDevice`.
15    pub const RTTI: VariantID = RTTI_BSIInputDevice;
16
17    /// Address & offset of Virtual function table.
18    pub const VTABLE: [VariantID; 1] = VTABLE_BSIInputDevice;
19}
20
21pub struct BSIInputDeviceVtbl {
22    pub CxxDrop: unsafe extern "C" fn(this: *mut BSIInputDevice), // 0x0
23    pub Initialize: unsafe extern "C" fn(this: *mut BSIInputDevice), // 0x1
24    pub Process: unsafe extern "C" fn(this: *mut BSIInputDevice, arg1: f32), // 0x2
25    pub Release: unsafe extern "C" fn(this: *mut BSIInputDevice), // 0x3
26    pub GetKeyMapping:
27        unsafe extern "C" fn(this: *mut BSIInputDevice, key: u32, mapping: &mut BSFixedString), // 0x4
28    pub GetMappingKey: unsafe extern "C" fn(this: *mut BSIInputDevice, mapping: &mut BSFixedString), // 0x5
29    pub GetMappingKeyCode:
30        unsafe extern "C" fn(this: *mut BSIInputDevice, key: u32, out_key_code: &mut u32), // 0x6
31    pub IsEnabled: unsafe extern "C" fn(this: *const BSIInputDevice), // 0x7
32    pub Reset: unsafe extern "C" fn(this: *mut BSIInputDevice),       // 0x8
33}